package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.dao.CourseMapper;
import com.woniuxy.pojo.Course;
import com.woniuxy.service.CourseService;

@Service
public class CourseServiceImpl implements CourseService{

	@Autowired
	private CourseMapper courseMapper;
	
	@Override
	public List<Course> getCourseById(Integer id,String course_name) {
		// TODO Auto-generated method stub
		return courseMapper.getCourseById(id,course_name);
	}

	@Override
	public List<Course> getAllCourse() {
		// TODO Auto-generated method stub
		return courseMapper.getAllCourse();
	}

}
